<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;


Route::rule('agent/login', 'agent/Login/login')->allowCrossDomain();; //登录
Route::rule('agent/resetPasswordSendSms', 'agent/Login/resetPasswordSendSms')->allowCrossDomain(); //重置密码发送验证码
Route::rule('agent/resetPassword', 'agent/Login/resetPassword')->allowCrossDomain();; //重置密码
Route::group('agent', function () {
    Route::rule('activateCodeList', 'agent/CodeManage/activateCodeList'); //激活码列表
    Route::rule('renewCodeList', 'agent/CodeManage/renewCodeList'); //续费码列表
    Route::rule('getInfoByTel', 'agent/CodeManage/getInfoByTel'); //通过手机号获取用户昵称电弧
    Route::rule('activateCodeBinding', 'agent/CodeManage/activateCodeBinding'); //代理商绑定合伙人
    Route::rule('renewCodeUse', 'agent/CodeManage/renewCodeUse'); //代理商续费合伙人
})->middleware(\app\http\middleware\AgentCheck::class)->allowCrossDomain();









Route::rule('superpartner/login', 'superpartner/Login/login')->allowCrossDomain();; //超级合伙人登录
Route::rule('superpartner/sendsms','superpartner/Login/sendSms');//超级用户手机号发送验证码
Route::rule('superpartner/nextstep','superpartner/Login/checkSms');//超级用户验证码验证
Route::rule('superpartner/forgetpassword','superpartner/Login/forgetPassword');//超级用户忘记密码
Route::rule('superpartner/activate', 'superpartner/Login/activate')->allowCrossDomain();; //超级合伙人首次激活
Route::rule('superpartner/setPassword', 'superpartner/Login/setPassword')->allowCrossDomain();; //超级合伙人首次激活设置密码
Route::rule('superpartner/uploadIdImg', 'superpartner/Login/uploadIdImg')->allowCrossDomain();; //超级合伙人首次激活上传身份证
Route::rule('superpartner/setData', 'superpartner/Login/setData')->allowCrossDomain();; //超级合伙人首次激活提交资料
Route::rule('superpartner/checkStatus', 'superpartner/Login/checkStatus')->allowCrossDomain();; //超级合伙人首次激活审核状态
Route::group('superpartner',function (){
    Route::rule('welcomePage','superpartner/HomePage/welcomePage');//欢迎页数据
    Route::rule('loginLog','superpartner/HomePage/loginLog');//登录日志
    Route::rule('systemNotice','superpartner/HomePage/systemNotice');//系统消息
    Route::rule('readNotice','superpartner/HomePage/readNotice');//读消息
    Route::rule('getSuperPartnerWt','superpartner/HomePage/getSuperPartnerWt');//分享海报获取微信和手机号


    Route::rule('tbOrder','superpartner/Orders/tbOrder');//淘宝订单
    Route::rule('jdOrder','superpartner/Orders/jdOrder');//京东订单
    Route::rule('pddOrder','superpartner/Orders/pddOrder');//拼多多订单

    Route::rule('accountInfo','superpartner/Earnings/accountInfo');//账户余额详情
    Route::rule('accountList','superpartner/Earnings/accountList');//账户余额列表明细
    Route::rule('withdrawList','superpartner/Earnings/withdrawList');//提现记录
    Route::rule('getWithdrawInfo','superpartner/Earnings/getWithdrawInfo');//申请提现时的信息
    Route::rule('WithdrawApply','superpartner/Earnings/WithdrawApply');//提现申请
    Route::rule('getProfitInfo','superpartner/Earnings/getProfitInfo');//收益结算记录
    Route::rule('getMoneyProfitList','superpartner/Earnings/getMoneyProfitList');//收益详细记录


    Route::rule('membersList','superpartner/Members/membersList');//会员列表
    Route::rule('inviteList','superpartner/Members/inviteList');//邀请记录
    Route::rule('memberBigData','superpartner/Members/memberBigData');//会员大数据
    Route::rule('partnerList','superpartner/Partner/partnerList');//合伙人列表
    Route::rule('getPartner','superpartner/Partner/getPartner');//查询用户信息
    Route::rule('partnerAdd','superpartner/Partner/partnerAdd');//增加合伙人
    Route::rule('partnerEdit','superpartner/Partner/partnerEdit');//修改合伙人提成比例
    Route::rule('partnerStutasEdit','superpartner/Partner/partnerStutasEdit');//禁用合伙人
    Route::rule('partnerStutasList','superpartner/Partner/partnerStutasList');//禁用合伙人列表
    Route::rule('orderBigInfo','superpartner/OrderBigData/orderBigInfo');//交易大数据与交易订单
    Route::rule('getSuperPartnerInfo','superpartner/SetUp/getSuperPartnerInfo');//查询超级用户的基本信息
    Route::rule('superPartnerEdit','superpartner/SetUp/superPartnerEdit');//修改超级用户的基本信息
    Route::rule('superPartnerPasswordEdit','superpartner/SetUp/superPartnerPasswordEdit');//修改超级用户的密码
    Route::rule('getTelSms','superpartner/SetUp/getTelSms');//超级用户手机号发送验证码
    Route::rule('checkOldTel','superpartner/SetUp/checkOldTel');//验证超级合伙人旧手机号
    Route::rule('checkNewTel','superpartner/SetUp/checkNewTel');//验证超级合伙人新手机号并修改手机号
    Route::rule('AlipayIdAdd','superpartner/SetUp/AlipayIdAdd');//添加支付宝号
    Route::rule('withdrawPasswordAdd','superpartner/SetUp/withdrawPasswordAdd');//添加提现密码
    Route::rule('getEmpower','superpartner/SetUp/getEmpower');//授权信息
    Route::rule('getPartnerInfoRebate','superpartner/SetUp/getPartnerInfoRebate');//获取设置中的上级推荐人的奖励比例以及修改次数
    Route::rule('partnerMaxPercentEdit','superpartner/SetUp/partnerMaxPercentEdit');//修改设置中的上级推荐人的奖励比例


})->middleware(\app\http\middleware\SuperPartnerCheck::class)->allowCrossDomain();






Route::rule('partner/setPassword', 'Partner/Login/setPassword')->allowCrossDomain();; //合伙人登录设置密码
Route::rule('partner/checkTel', 'Partner/Login/checkTel')->allowCrossDomain();; //合伙人设置密码发送手机验证码
Route::rule('partner/checkPartner', 'Partner/Login/checkPartner')->allowCrossDomain();; //验证合伙人
Route::rule('partner/login', 'Partner/Login/login')->allowCrossDomain();; //合伙人登陆
Route::group('partner',function (){
    Route::rule('welcomePage','partner/HomePage/welcomePage');//欢迎页数据
    Route::rule('loginLog','partner/HomePage/loginLog');//登录日志
    Route::rule('systemNotice','partner/HomePage/systemNotice');//系统消息
    Route::rule('readNotice','partner/HomePage/readNotice');//读消息
    Route::rule('membersList','partner/Members/membersList');//会员列表
    Route::rule('inviteList','partner/Members/inviteList');//邀请记录
    Route::rule('tbOrder','partner/Orders/tbOrder');//淘宝订单
    Route::rule('jdOrder','partner/Orders/jdOrder');//京东订单
    Route::rule('pddOrder','partner/Orders/pddOrder');//拼多多订单
    Route::rule('accountInfo','partner/Earnings/accountInfo');//账户余额详情
    Route::rule('accountList','partner/Earnings/accountList');//账户余额列表明细
    Route::rule('withdrawList','partner/Earnings/withdrawList');//提现记录
    Route::rule('getWithdrawInfo','partner/Earnings/getWithdrawInfo');//申请提现时的信息
    Route::rule('WithdrawApply','partner/Earnings/WithdrawApply');//提现申请
    Route::rule('getProfitInfo','partner/Earnings/getProfitInfo');//收益结算记录
    Route::rule('getMoneyProfitList','partner/Earnings/getMoneyProfitList');//收益详细记录
    Route::rule('memberBigData','partner/Members/memberBigData');//会员大数据
    Route::rule('orderBigInfo','partner/OrderBigData/orderBigInfo');//交易大数据与交易订单
    Route::rule('getPartnerInfo','partner/SetUp/getPartnerInfo');//查询合伙人基本信息
    Route::rule('partnerEdit','partner/SetUp/partnerEdit');//修改合伙人用户的基本信息
    Route::rule('partnerPasswordEdit','partner/SetUp/partnerPasswordEdit');//修改合伙人用户的密码
    Route::rule('checkOldTel','partner/SetUp/checkOldTel');//验证合伙人旧手机号
    Route::rule('getTelSms','partner/SetUp/getTelSms');//合伙人手机号发送验证码
    Route::rule('checkNewTel','partner/SetUp/checkNewTel');//验证合伙人新手机号并修改手机号
    Route::rule('AlipayIdAdd','partner/SetUp/AlipayIdAdd');//添加支付宝号
    Route::rule('withdrawPasswordAdd','partner/SetUp/withdrawPasswordAdd');//设置提现密码
    Route::rule('getPartnerState','partner/SetUp/getPartnerState');//合伙状态


})->middleware(\app\http\middleware\PartnerCheck::class)->allowCrossDomain();




